package com.demo2;

/**
 * Created by Administrator on 2017/3/25.
 */
public class XunHuan7 {
    public static void main(String[] args) {
        System.out.println("使用break的例子");
        for (int i = 0; i < 50; i++) {
            System.out.println("i=" + i);
            if (i == 10)
                break;
        }
        System.out.println("循环跳出");
    }
}
